var urlKeyValue = null;
function parserUrl()
{
    urlKeyValue = {};
    var index = location.href.indexOf('?');
    if(index < 0)return;
    keyvalue = location.href.substr(index + 1).split('&');
    for(var i = 0; i < keyvalue.length; i++)
    {
        index = keyvalue[i].indexOf('=');
        if(index > 0)urlKeyValue[keyvalue[i].substring(0,index)]=keyvalue[i].substr(index+1);
    }
}
function getParameter(name)
{
    if(urlKeyValue == null)parserUrl();
    if(urlKeyValue[name] == undefined) return "";
    return urlKeyValue[name];
}
